package com.hx.io.filewriter;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * @author jxlgcmh
 * @create 2019-05-09 16:00
 */
public class Demo1 {
    public static void main(String[] args) throws IOException {
        File file = new File("c.txt");
        Writer writer = new FileWriter(file);
        writer.write("i hava a dream \n");
        writer.write("you also hava a dream \n");
        writer.close();
    }
}
